{template Public:Admin:header}
<style type="text/css">
input[type="checkbox"], input[type="radio"] {
	opacity: 1;
	position: static;
}
</style>
<form action="/admin/email/post" method="post" class="form-horizontal form-bordered " role="form">

	 <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">网站默认邮箱</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="sitemail" value="{echo C('sitemail')}">
        </div>
        <div class="col-sm-7 text-muted">
        <span class="text-muted">发送者缺省时系统会使用网站默认邮箱</span>
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">邮件功能使用</label>
        <div class="col-sm-3">
            
                    <div class="radio">
                        <label>
                            <input type="radio"{if C('mailfunction')=='foxphp'} checked="checked"{/if} name="mailfunction" value="foxphp">
                            <span class="text">FoxPHP官方</span>
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio"{if C('mailfunction')=='phpmailer'} checked="checked"{/if} name="mailfunction" value="phpmailer">
                            <span class="text">第三方</span>
                        </label>
                    </div>
                    
               
        </div>
        <div class="col-sm-7 text-muted">
        发送失败时可以尝试第三方功能
        </div>
    </div>    
      
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">SMTP 服务器</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="mailsmtp" value="{echo C('mailsmtp')}">
        </div>
        <div class="col-sm-7 text-muted">
        设置 SMTP 服务器的地址
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">SMTP 端口</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="mailsmtpport" value="{echo C('mailsmtpport')}">
        </div>
        <div class="col-sm-7 text-muted">
        设置 SMTP 服务器的端口，默认为 25
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">SMTP 身份验证用户名</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" name="mailloginname" value="{echo C('mailloginname')}">
        </div>
        <div class="col-sm-7 text-muted">
        邮箱地址
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">SMTP 身份验证密码</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" name="mailloginpassword" value="{echo C('mailloginpassword')}">
        </div>
        <div class="col-sm-7 text-muted">
        邮箱密码
        </div>
    </div>
    
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button class="btn btn-palegreen" type="submit">提交</button>
        </div>
    </div>
</form>


{template Public:Admin:footer}